/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.rm.entidades.jpa;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author ffbeltran
 */
public class JpaController {
    private static EntityManagerFactory emf = null;
    static {
        emf = Persistence.createEntityManagerFactory("RolemasterUtilPU");
    }
    public static EntityManager getEntityManager() {
        return emf.createEntityManager();
    }
}
